//
//  tiXCollectionViewCell.m
//  LeZhuanWorker
//
//  Created by 于跃隆 on 2020/4/14.
//  Copyright © 2020 xiaohao. All rights reserved.
//

#import "tiXCollectionViewCell.h"

@implementation tiXCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setControlFrame];
    }
    return self;
}
-(void)setControlFrame{
    [self addSubview:self.titleLabel];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self);
        make.centerY.mas_equalTo(self);
        
    }];
    
   
}

-(UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.text = @"¥ 20";
        _titleLabel.font = MarkFont(18);
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.textColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
    }
    return _titleLabel;
}

@end
